package com.ruoyi.lhky.service;

import com.ruoyi.lhky.mapper.WorkplaceMapper;
import com.ruoyi.lhky.pojo.Workplace;
import com.ruoyi.lhky.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkplaceService {

    @Autowired
    private WorkplaceMapper workplaceMapper;

    public R list() {
        List<Workplace> workplaces = workplaceMapper.selectList(null);
        return new R(true, workplaces);
    }
}
